package com.example.hao.animation_demo;

import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.View;
import android.view.animation.AnimationUtils;

public class View4Activity extends AppCompatActivity {

    private View iv_moji;
    private View iv_next;
    private View iv_start;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_view4);
        initView();
    }

    private void initView() {
        iv_moji = findViewById(R.id.moji);
        iv_next = findViewById(R.id.iv_next);
        iv_start = findViewById(R.id.iv_start);

        MyAnimationUtils.method(this,R.anim.anim_translate,iv_next);
        MyAnimationUtils.method(this,R.anim.moji,iv_moji);

    }
}
